<template>
  <div class="js-tabItem1">
    <div class="js-tabItem1-label">
      {{ config.label }}
    </div>
    <div class="js-tabItem1-val">
      <div class="js-tabItem1-val-num">
        {{ value }}
      </div>
      {{ config.unit }}
    </div>
  </div>
</template>
<script>
export default {
  props: {
    config: {
      type: Object
    },
    value: {
      type: [Number, String],
      default: 0
    }
  }
}
</script>
<style lang="scss">
.js-tabItem1 {
  width: 266px;
  height: 29.11%;
  background: url('~@/assets/img/overview/td-mid-bg.png')
    no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 18px;
  &-label {
    font-size: 14px;
    line-height: 14px;
    font-weight: bold;
    color: #4c565c;
  }
  &-val {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 14px;
    line-height: 14px;
    font-weight: 500;
    color: #4c565c;
    &-num {
      font-size: 18px;
      line-height: 18px;
      font-family: DIN;
      font-weight: bold;
      color: #000000;
      margin: 0 5px -2px 0;
    }
  }
}
</style>
